﻿#ifndef _blua_hdr_h_
#define _blua_hdr_h_

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "lua/lua.h"
#include "lua/lualib.h"
#include "lua/lauxlib.h"
#include "../beyondbase/bbase_macro.h"
#include "../beyondbase/bbase_plat.h"

#define blua_lib_import 1
#define blua_lib_export 2
#define blua_lib_src 3
#ifndef blua_lib_type
	#define blua_lib_type blua_lib_import
#endif
#ifndef blua_plat
	#define blua_plat bb_plat_win32
#endif

#if blua_plat==bb_plat_win32
	#if blua_lib_type==blua_lib_import
		#define blua_lib_func __declspec(dllimport)
	#elif blua_lib_type==blua_lib_export
		#define blua_lib_func __declspec(dllexport)
	#elif blua_lib_type==blua_lib_src
		#define blua_lib_func
	#endif
#else
	#error unsupport platform
#endif

#endif
/***********************************

2010/11/23-xx:xx @ corp.king
blua_hdr.h
bey0ndc00de
utf-8 --with-sig

************************************/
/*last for linux*/
